package crmsystem.com.service.impl;

import crmsystem.com.utils.Query;
import crmsystem.com.utils.PageUtils;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import crmsystem.com.dao.SaleachievementdataDao;
import crmsystem.com.entity.SaleachievementdataEntity;
import crmsystem.com.service.SaleachievementdataService;


@Service("saleachievementdataService")
public class SaleachievementdataServiceImpl extends ServiceImpl<SaleachievementdataDao, SaleachievementdataEntity> implements SaleachievementdataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<SaleachievementdataEntity> page = this.page(
                new Query<SaleachievementdataEntity>().getPage(params),
                new QueryWrapper<SaleachievementdataEntity>()
        );

        return new PageUtils(page);
    }

}